package org.state;

//	D的下一状态为A
public class StateD extends State {

	@Override
	public void MethodA() {
		super.context.setCurrentState(Context.STATE_A);
		super.context.MethodA();
	}

	@Override
	public void MethodB() {
	}

	@Override
	public void MethodC() {
	}

	@Override
	public void MethodD() {
		System.out.println("我是状态D");
	}

}
